package cn.iocoder.yudao.module.jifenyuan.enums;

import cn.iocoder.yudao.framework.common.core.IntArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;
@Getter
@AllArgsConstructor
public enum JifenyuanWalletEventTypeEnum implements IntArrayValuable {

    CREATE_ROOM(1, "创建房间"),
    JOIN_ROOM(2, "加入房间");

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(JifenyuanWalletEventTypeEnum::getStatus).toArray();

    /**
     * 状态值
     */
    private final Integer status;
    /**
     * 状态名
     */
    private final String name;

    @Override
    public int[] array() {
        return ARRAYS;
    }
}
